package com.dms.modules.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("product_spec_template")
@ApiModel(value = "ProductSpecTemplate", description = "商品规格模板")
public class ProductSpecTemplate {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("模板ID")
    private Long id;
    
    @ApiModelProperty("分类ID")
    private Long categoryId;
    
    @ApiModelProperty("规格名称")
    private String name;
    
    @ApiModelProperty("规格值JSON")
    private String values;
    
    @ApiModelProperty("排序")
    private Integer sort;
    
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
    
    @TableLogic
    @ApiModelProperty("是否删除：0-未删除 1-已删除")
    private Integer deleted;
} 